Refactored some code Signed-off-by: Subv <s.v.h21@hotmail.com>
added lots of improvements Please re-extract vmaps