Added actionview

Improved code structure, added some javadoc