Added railstop
Added endstop for custom microswith
Minor refactor