Refactored some code Signed-off-by: Subv <[email protected]>
added lots of improvements Please re-extract vmaps