added init method
added nextPoint definition
updated format and comments
remote unused import