simplified main
minor fix
added keyboard and mouse support
changed array to vector