Close function added to Stroke + collision functions refactored + better comments